package cn.tedu.pojo;/**
 * @Author 金帮嘉诚 @Date 2021-07-15 星期四 9:57
 */
/*本类用于测试*/

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 知识点
 */
public class Student {
    //    姓名年龄性别 爱好学历入学日期
    private Integer id;
    private String name;
    private Integer age;
    private Integer sex;
    private Integer like;
    private Integer eduBackground;
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date admissionDate;

    public Student() {
    }

    public Student(Integer id, String name, Integer age, Integer sex, Integer like, Integer eduBackground, Date admissionDate) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.like = like;
        this.eduBackground = eduBackground;
        this.admissionDate = admissionDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getLike() {
        return like;
    }

    public void setLike(Integer like) {
        this.like = like;
    }

    public Integer getEduBackground() {
        return eduBackground;
    }

    public void setEduBackground(Integer eduBackground) {
        this.eduBackground = eduBackground;
    }

    public Date getAdmissionDate() {
        return admissionDate;
    }

    public void setAdmissionDate(Date admissionDate) {
        this.admissionDate = admissionDate;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", like=" + like +
                ", eduBackground=" + eduBackground +
                ", admissionDate=" + admissionDate +
                '}';
    }
}
